<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderfAddSupplierStatus extends Migrator
{
    public function up()
    {

        $this->table('coupon_order')
            ->addColumn('supplier_status', 'integer', ['limit' => 3, 'default' => 1, 'comment' => '1 未提交 2 待提交 4 已提交 6 成功 8 失败 99 轮训 '])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_order')
            ->removeColumn('supplier_status');
    }
}
